const request = require('./request')

const BASE_URL = '/online/service'

/**
 * 发送聊天消息
 * @param {*} param 
 * @returns 
 */
function sendChat(param) {
  // 这里用POST方式，参数放body
  return request.post(BASE_URL + '/chat', { content: param.content, imgBase64: param.imgBase64, type: param.type, businessType: param.businessType, duration: param.duration })
}

module.exports = {
  sendChat
} 